import request from '@/utils/request'


export function pendingWorkOrderNum(todayPending){
    return request({
        url: '/dashboard/pendingWorkOrderNum',
        method: 'get',
        params: {
            statusList: [1,3],
            todayPending
        }
      })
}
export function finishWorkOrderNum(todayFinish){
  return request({
      url: '/dashboard/finishWorkOrderNum',
      method: 'get',
      params: {
          statusList: [4,5],
          todayFinish
      }
    })
}
export function assignedWorkOrderNum(startDate,endDate){
  return request({
      url: '/dashboard/assignedWorkOrderNum',
      method: 'get',
      params: {
          statusList: [0],
          startDate,
          endDate
      }
    })
}
export function statisticsAbnormalOrderWork(todayAbnormal){
    return request({
        url: '/dashboard/statisticsAbnormalOrderWork',
        method: 'get',
        params:{
          todayAbnormal
        }
      })
}


export function abnormalList(){
  return request({
    url: '/dashboard/abnormalList',
    method: 'get',
  })
}

export function noticeList(){
  return request({
    url: '/dashboard/noticeList',
    method: 'get',
  })
}

//首页-待完成
export function todoStats(){
  return request({
    url: '/dashboard/todoOrderStats',
    method: 'get',
  })
}
//首页-已完成
export function finishStats(){
  return request({
    url: '/dashboard/finishOrderStats',
    method: 'get',
  })
}
//首页-待分配
export function assignedStats(){
  return request({
    url: '/dashboard/assignedOrderStats',
    method: 'get',
  })
}